header {
    height: 60px;
}

.header-container {
    padding: 5px 0;
    box-shadow: 0 1px 3px #00000026;
    border-bottom: 1px solid #ddd;
    z-index: 90000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    display: flex;
    justify-content: center;
    width: 128px;
    height: 50px;
}

.header-nav {
    display: flex;
}

.header-nav-item {
    display: grid;
    grid-row-gap: 6px;
    height: 50px;
    justify-items: center;
    align-items: center;
    padding: 0 20px;
    cursor: pointer;
}

.header-nav-item_icon, .header-side-cate_icon {
    filter: brightness(0);
}

.header-nav-item_name {
    text-transform: uppercase;
    font-size: 14px;
    line-height: 14px;
}

.header-search {
    position: relative;
    height: 38px;
}

.header-search-bar {
    position: relative;
}

.header-search-bar_input {
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 9px 45px 9px 9px;
    box-shadow: 0px 0px 0px 0 transparent;
}

.header-search-bar_input:focus {
    box-shadow: 0px 0px 0px 3px rgba(74, 144, 226, .7);
}

.header-search-bar_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    z-index: 999;
    cursor: pointer;
}

.header-menu {
    display: none;
}

.header-side {
    display: none;
}

@media screen and (min-width: 640px) {
    .header-nav-item:hover .header-nav-item_icon {
        filter: none;
    }
    .header-nav-item:hover .header-nav-item_name {
        color: var(--main-color);
    }
}

/* 移动端 */
@media screen and (max-width: 640px) {
    .header-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 49px;
        height: 49px;
    }
    .header-nav {
        display: none;
    }
    .header-search-bar_input {
        display: none;
    }
    .header-search-bar_btn {
        position: static;
        transform: translateY(0);
    }

    .header-side {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: block;
        z-index: 90001;
        transform: translateX(-100%);
        transition: transform 300ms ease-in-out;
    }

    .header-side.open {
        transform: translateX(0);
    }

    .header-side-cate {
        display: flex;
        flex-direction: column;
        width: 95%;
        height: 100%;
        background-color: #fff;
        padding: 10px;
        border: 1px solid #dddddd;
    }

    .header-side-cate-item {
        display: flex;
        align-items: center;
        border-bottom: 1px solid #ddd;
        padding: 10px 5px;
    }

    .header-side-cate_icon {
        width: 14px;
        margin-right: 8px;
    }

    .header-side-cate_name {
        font-size: 16px;
        color: #3a5f69;
    }

    .header-side-home {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #ddd;
    }

    .header-side-logo {
        display: flex;
        padding: 10px 5px;
    }

    .header-side-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .header-side-close img {
        width: 70%;
        height: 70%;
    }
}